package jsu.blogger.service.inter;

import java.time.LocalDateTime;
import java.util.Set;

public interface UserFollowService {
    Set<Long> getUserFollowList(Long userId);
    Set<Long> getUserFollowersList(Long userId);
    Set<Long> getUserFollowListByRedis(Long userId);
    Set<Long> getUserFollowerListByRedis(Long userId);
    boolean insertFollow(Long followerId, Long followedId, LocalDateTime createdAt);
    boolean deleteFollow(Long followerId, Long followedId);
    boolean followUser(Long followerId, Long followedId);
    boolean unfollowUser(Long followerId, Long followedId);
    boolean isUserFollowing(Long userId, Long targetUserId);
    boolean isUserFollower(Long userId, Long targetUserId);
    boolean isMutualFollow(Long userIdA, Long userIdB);
}
